﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompnayGoodsAdd.aspx.cs"
    Inherits="Bidder_CompnayGoodsAdd" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加商品</title>
    <link href="../System/css.css" rel="stylesheet" type="text/css" />

    <script language="vbscript" src="../Common/yz.vbs"></script>

    <script language="javascript">

        function Sel() {

            window.open('GoodsAdd_CompanySearch.aspx');
        }
        function confirmvalue(obj) {
            document.all("txtIsSalerId").value = obj.companyid;
            document.all("txtCompany").value = obj.companyName;
        }
        function Sel_dl() {
            window.open('GoodsAdd_CompanySearch_dl.aspx');
        }
        function confirmvalue_dl(obj) {

            document.all("txtIsSalerId_dl").value = obj.companyid;
            document.all("txtCompany_dl").value = obj.companyName;
        }
        function chk() {


            if (document.all("chkIsImport").checked == false) {
                table1.style.display = 'none';
            }
            else {
                table1.style.display = 'block';
            }
        }
        
    </script>

    <script language="javascript" src="../common/javascript/calendar.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 4px">
                    <img src="../images/intro_left.gif" width="4" height="34">
                </td>
                <td class="intro_wordbg">
                    添加商品
                </td>
                <td background="../images/intro_bg.gif">
                    <img src="../images/intro_right.jpg" width="118" height="34">
                </td>
            </tr>
        </table>
        <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" class="table_table2">
            <tr>
                <td class="table_td3" style="height: 24px">
                    品目号
                </td>
                <td class="table_td2" style="height: 24px">
                    <asp:Label ID="labProductCode" runat="server" Text="" Width="185px"></asp:Label>
                </td>
                <td class="table_td3">
                    商品通用名：
                    </asp:Label>
                </td>
                <td class="table_td2">
                    <asp:Label ID="labProductName" runat="server" Text="" Width="197px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="table_td3">
                    商品剂型：
                </td>
                <td class="table_td2">
                    <asp:Label ID="labMedicinemodel" runat="server" Text="" Width="185px"></asp:Label>
                </td>
                <td class="table_td3">
                    <asp:Label ID="Label2" runat="server" Text="商品规格：" Width="196px"></asp:Label>
                </td>
                <td class="table_td2">
                    <asp:Label ID="labOutlookc" runat="server" Text="" Width="196px"></asp:Label>
                </td>
            </tr>
            </table>
        <table id="tabData" width="98%" border="0" align="center" cellpadding="2" cellspacing="1"
            class="table_table2">
            <tr>
                <td class="table_td3">
                    企业商品说明书名称：
                </td>
                <td class="table_td2">
                    <asp:TextBox ID="txtProductNameSM" runat="server" InvertedComma="企业商品说明书名称" NotNull="企业商品说明书名称"
                        Width="195px"></asp:TextBox><span style="color: #ff0000">(*)按商品说明书上的药品名称填写。必须要和商品说明书上的名字一致。</span>
                </td>
            </tr>
            <tr>
             <td class="table_td3">
                    转换系数：
                </td>
                <td class="table_td2">
                    <asp:TextBox ID="txtFactor" runat="server" NumericOnly="转换系数" NotNull="转换系数" Width="91px"
                        DYL="转换系数" ZS="转换系数" QJZBJ="转换系数"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: #ff0000">(*)例：片剂&nbsp; 
                    最小包装一盒2板每版12片 转换系数就是 24.</span>
                    </td>
            </tr>
            <tr>
             <td class="table_td3">
                    制剂单位：</td>
                <td class="table_td2">
                <asp:TextBox ID="txtunit" runat="server"  ></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <span style="color: #ff0000">(*)例：片剂&nbsp; 最小包装一盒2板每版12片 制剂单位是 片.</span>
                     
                </td>
            </tr>
            <tr>
             <td class="table_td3">
                    包装单位：</td>
                <td class="table_td2">
                <asp:TextBox ID="packUnit" runat="server"  ></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <span style="color: #ff0000">(*)例：片剂&nbsp; 最小包装一盒2板每版12片 包装单位就是 盒.</span>
                    
                </td>
            </tr>
            <tr>
                <td class="table_td3">
                    生产企业：
                </td>
                <td class="table_td2">
                    <asp:TextBox ID="txtCompany" runat="server" Width="415px" NotNull="生产企业" ReadOnly="true"></asp:TextBox>
                    <input id="Button1" type="button" value="选择生产企业" class="button_bg6" onclick='Sel()'
                        style="display: none; width: 91px;" /><span style="color: #ff0000">(*)</span>
                    <input id="Hidden1" name="txtIsSalerId" type="hidden" style="width: 73px" />
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3">
                    批准文号：
                </td>
                <td class="table_td2">
                    <asp:TextBox runat="server" ID="txtLicenseNumber" InvertedComma="批准文号" Width="415px"></asp:TextBox>
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3" style="height: 28px">
                    批准文号有效期：
                </td>
                <td class="table_td2" style="height: 28px">
                    <asp:TextBox runat="server" ID="txtLicenseNumberDate" onclick="javascript:fPopCalendar(txtLicenseNumberDate,txtLicenseNumberDate);"
                        dataType="Date" format="ymd" require="true" DateTimeOnly="批准文号有效期" Width="415px"></asp:TextBox>
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3">
                    是否进口药
                </td>
                <td class="table_td2">
                    <asp:CheckBox ID="chkIsImport" Text="是" runat="server" onclick="javascript:chk();" /><br />
                    <table id="table1" style="display: <%=status%>">
                        <tr>
                            <td colspan="2">
                                <asp:TextBox ID="txtCompany_dl" ReadOnly="true" runat="server" Width="415px"></asp:TextBox>
                                <input id="Button3" type="button" value="选择一级代理商" class="button_bg6" onclick='Sel_dl()'
                                    style="width: 89px" />
                                <input id="Hidden2" name="txtIsSalerId_dl" type="hidden" style="width: 38px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="table_td3">
                                进口药品注册证号：
                            </td>
                            <td class="table_td2">
                                <asp:TextBox runat="server" ID="txtImportCode" InvertedComma="进口药品注册证号" Width="415px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_td3">
                                进口药品注册证有效期限：
                            </td>
                            <td class="table_td2">
                                <asp:TextBox runat="server" ID="txtImportRegistDate" onclick="javascript:fPopCalendar(txtImportRegistDate,txtImportRegistDate);"
                                    dataType="Date" format="ymd" require="true" DateTimeOnly="进口药品注册证有效期限" Width="415px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3">
                    商品名：
                </td>
                <td class="table_td2">
                    <asp:TextBox runat="server" ID="txtGoodsName" InvertedComma="商品名" Width="415px"></asp:TextBox>
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3" style="height: 28px">
                    材 质：
                </td>
                <td class="table_td2" style="height: 28px">
                    <asp:TextBox runat="server" ID="txtMaterial" InvertedComma="材 质" Width="415px"></asp:TextBox>
                    <asp:TextBox runat="server" ID="txtPackUnit" InvertedComma="包装单位" Width="49px"></asp:TextBox>
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3">
                    最新零售价：
                </td>
                <td class="table_td2">
                    <asp:TextBox runat="server" ID="txtRetailPrice" NumericOnly="零售价" Width="415px"></asp:TextBox>
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3">
                    零售价出处：
                </td>
                <td class="table_td2">
                    <asp:TextBox runat="server" ID="txtMemo4" InvertedComma="零售价出处" Width="415px"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    截止时间：<asp:TextBox ID="txtjz" runat="server" onclick="javascript:fPopCalendar(this,this);"
                        dataType="Date" format="ymd" require="true" msg="日期不存在" Width="93px"></asp:TextBox>
                </td>
            </tr> 
            <!--                
<tr>
                    <td class="table_td3">
                        gmp 认证编号：

                    </td>
                    <td class="table_td2">
                        <asp:TextBox runat="server" ID="txtGmpCode"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="table_td3">
                        gmp认证范围：

                    </td>
                    <td class="table_td2">
                        <asp:TextBox runat="server" ID="txtGmpRange"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="table_td3">
                        Gmp发证日期：

                    </td>
                    <td class="table_td2">
                        <asp:TextBox runat="server" ID="txtGmpDate" onclick="javascript:fPopCalendar(txtGmpDate,txtGmpDate);"
                        dataType="Date" format="ymd" require="true"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="table_td3">
                        Gmp有效期限：

                    </td>
                    <td class="table_td2">
                        <asp:TextBox runat="server" ID="txtGmpValDate" onclick="javascript:fPopCalendar(txtGmpValDate,txtGmpValDate);"
                        dataType="Date" format="ymd" require="true"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="table_td3">
                        药品许可证号：

                    </td>
                    <td class="table_td2">
                        <asp:TextBox runat="server" ID="txtLicence"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="table_td3">
                        药品许可证有效期：：：：：
                    </td>
                    <td class="table_td2">
                        <asp:TextBox runat="server" ID="txtLicenceDate" onclick="javascript:fPopCalendar(txtLicenceDate,txtLicenceDate);"
                        dataType="Date" format="ymd" require="true"></asp:TextBox>
                    </td>
                </tr>
                                <tr>
                    <td class="table_td3">
                        是否原研药</td>
                    <td class="table_td2">
                        <asp:CheckBox ID="chkIsPrimitive" Text="是" runat="server" /></td>
                </tr>

                <tr>
                    <td class="table_td3">
                        有无新药证书</td>
                    <td class="table_td2">
                        <asp:CheckBox ID="chkIsNewMedicine" runat="server" Text="有" />
                        <table style="width: 295px">
                            <tr>
                                <td class="table_td3">
                                    <asp:Label ID="Label3" runat="server" Text="新药证书："></asp:Label></td>
                    <td class="table_td2">
                                    <asp:TextBox ID="txtNewMedicine" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td class="table_td3">
                                    <asp:Label ID="Label4" runat="server" Text="新药证书有效期：" Width="132px" ></asp:Label></td>
                    <td class="table_td2">
                                    <asp:TextBox ID="txtNewMedicineDate" runat="server" onclick="javascript:fPopCalendar(txtNewMedicineDate,txtNewMedicineDate);"
                        dataType="Date" format="ymd" require="true"></asp:TextBox></td>
                            </tr>
                        </table>
                    </td>
                </tr>-->
            <tr style="display: none">
                <td class="table_td3">
                    有无药品检验报告：
                </td>
                <td class="table_td2">
                    <asp:CheckBox ID="chkIsSurveyReport" runat="server" Text="有" /><br />
                    <table width="98%">
                        <tr>
                            <td class="table_td3">
                                药品检验报告编号：
                            </td>
                            <td class="table_td2">
                                <asp:TextBox ID="txtSurveyReportId" runat="server" Width="415px" InvertedComma="药品检验报告编号"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="table_td3">
                                药品检验报告有效期：
                            </td>
                            <td class="table_td2">
                                <asp:TextBox ID="txtSurveyReportDate" runat="server" Width="415px" onclick="javascript:fPopCalendar(txtSurveyReportDate,txtSurveyReportDate);"
                                    dataType="Date" format="ymd" require="true" DateTimeOnly="药品检验报告有效期"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr style="display: none">
                <td class="table_td3">
                    商品说明
                </td>
                <td class="table_td2">
                    <asp:TextBox ID="txtGoodsInstruction" runat="server" Height="123px" TextMode="MultiLine"
                        Width="415px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="table_td2">
                    <asp:Button ID="BtnSave" runat="server" Text="保　存" OnClick="BtnSave_Click" CssClass="button_bg"
                        OnClientClick="javascript:return CheckForm();" Width="60px" />
                </td>
                <td class="table_td2">
                    <input id="Button4" class="button_bg" name="sdf" type="button" value="关  闭" onclick="window.close()"
                        style="width: 59px" />
                    <asp:Label ID="labProductAddStatus" runat="server" Text="Label"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
